﻿using Dapper;
using System;
using BCEntity.TMS.OrderExtentionGoodsChecklist;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;

namespace BCData.TMS.OrderExtentionGoodsChecklist
{
	/// <summary>
	/// 订单扩展货物清单信息
	/// </summary>
	public interface IOrderExtentionGoodsChecklistData
	{
		#region  成员方法
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		/// <param name="orderExtentionGoodsChecklistId">订单扩展货物清单信息Id</param>
		Task<bool> Exists(long orderExtentionGoodsChecklistId);
		/// <summary>
		/// 增加订单扩展货物清单信息
		/// </summary>
		/// <param name="entities">订单扩展货物清单信息信息列表</param>
		Task<bool> Add(List<OrderExtentionGoodsChecklistEntity> entities);
		/// <summary>
		/// 增加订单扩展货物清单信息
		/// </summary>
		/// <param name="entity">订单扩展货物清单信息信息</param>
		Task<OrderExtentionGoodsChecklistEntity> Add(OrderExtentionGoodsChecklistEntity entity);
		/// <summary>
		/// 更新订单扩展货物清单信息
		/// </summary>
		/// <param name="entity">订单扩展货物清单信息信息</param>
		Task<OrderExtentionGoodsChecklistEntity> Update(OrderExtentionGoodsChecklistEntity entity);
		/// <summary>
		/// 删除订单扩展货物清单信息
		/// </summary>
		/// <param name="orderExtentionGoodsChecklistId">订单扩展货物清单信息Id</param>
		Task<bool> Delete(long orderExtentionGoodsChecklistId);
		/// <summary>
		/// 获取订单扩展货物清单信息
		/// </summary>
		/// <param name="orderExtentionGoodsChecklistId">订单扩展货物清单信息Id</param>
		Task<OrderExtentionGoodsChecklistEntity> GetEntity(long orderExtentionGoodsChecklistId);
		/// <summary>
		/// 获取订单扩展货物清单信息列表
		/// </summary>
		/// <param name="orderNo">订单编号</param>
		Task<IEnumerable<OrderExtentionGoodsChecklistEntity>> GetList(string orderNo);
		/// <summary>
		/// 获取订单扩展货物清单信息列表
		/// </summary>
		/// <param name="orderId">订单Id</param>
		Task<IEnumerable<OrderExtentionGoodsChecklistEntity>> GetList(long orderId);
		/// <summary>
		/// 获取订单扩展货物清单信息分页列表
		/// </summary>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">每页数据条数</param>
		Task<(IEnumerable<OrderExtentionGoodsChecklistEntity>, int)> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
	}


}